package com.crx.springbootinit.model.vo.chat;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author 谢杭延
 * @Date 2024-10-24 15:29
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("聊天记录视图实体")
public class ChatVO {
    @ApiModelProperty(value = "消息主键id")
    private Long id;

    @ApiModelProperty(value = "发起者id")
    private Long userId;

    @ApiModelProperty(value = "接收者id")
    private Long targetId;

    @ApiModelProperty(value = "发起者名称")
    private String userName;

    @ApiModelProperty(value = "接收者名称")
    private String targetName;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "是否已读")
    private Boolean isRead;
}
